package com.example;

import org.kohsuke.stapler.Stapler;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class StaplerInitializer implements ServletContextListener {

    public void contextInitialized(ServletContextEvent event) {
        ServletContext context = event.getServletContext();
        Stapler.setRoot(event, new Root());
    }


    public void contextDestroyed(ServletContextEvent event) {
        // Clean up resources if needed
    }
}
